﻿@model Nop.Web.Models.Customer.CustomerAddressEditModel
@{
    Layout = "~/Views/Shared/_Root.cshtml";

    //title
    Html.AddTitleParts(T("PageTitle.Account").Text);
}
@using Nop.Web.Framework;
@using (Html.BeginForm())
{
    <div class="account-page">
        <div class="page-title">
            <h1>@T("Account.CustomerAddresses.Edit")</h1>
        </div>
        <div class="clear">
        </div>
        <div class="body">
            @{
    var dataDictAddress = new ViewDataDictionary();
    //Merge ModelState (required for validation)
    dataDictAddress.ModelState.Merge(ViewData.ModelState);
    dataDictAddress.TemplateInfo.HtmlFieldPrefix = "Address";
                @Html.Partial("_CreateOrUpdateAddress", Model.Address, dataDictAddress)          
            }
            <div class="buttons">
                <input type="submit" value="@T("Common.Save")" />
            </div>
        </div>
    </div>
}